import { createRouter, createWebHistory } from 'vue-router'


const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/home',
      name: 'home',
      component: () => import('@/views/HomeView.vue'),
      children: [{
        path: 'e-commerce',
        name: 'ecommerce',
        component: () => import('@/views/ECommerceView.vue')
      }]
    }
  ]
})

export default router
